movies = ["Hello", "Baby", ["haha", "heihei", ["cacaca", "dididididi", ['adsfasfd', 'adsfasdf']]]]
movies.insert(1, 1975)
movies.insert(3, 1980)
print(movies)

for each_movie in movies:
    if isinstance(each_movie, list):
        for e in each_movie:
            if isinstance(e, list):
                for deeper in e:
                    print(deeper)
            else:
                print(e)
    else:
        print(each_movie)

print(dir(__builtins__))

test_str = isinstance("caca", str)

print(test_str)

"""
Self define functions:
"""


def print_lol(the_list,indent=False, level=0):
    for e in the_list:
        if isinstance(e, list):
            print_lol(e, indent,level+1)
        else:
            if indent:
                for tab_stop in range(level):
                    print("\t", end='')
            print(e)

print_lol(movies)